// index.ts
// 获取应用实例
const app = getApp();

Page({
  data: {
    width: 300,
    height: 300,
    renderWidth: 300,
    renderHeight: 300,
    loaded:false,
    positions:[[0,0,'rgba(44,44,44,0.5)',''],[0,0,'rgba(44,44,44,0.5)','']]
  },
  onLoad() {
    const info = wx.getSystemInfoSync();
    const width = info.windowWidth;
    const height = info.windowHeight;
    const dpi = info.pixelRatio;
    this.setData({
      width, height,
      renderWidth: width * dpi,
      renderHeight: height * dpi
    });
  },
  handleLoaded: function({detail}) {
    this.setData({loaded: true});
  },
  handleSyncPositions: function({detail}) {
    this.setData({positions: detail});
  },
  methods: {
    
  },
})
